GET PlanCare2Api/ClientAgreements?clientIds[0]={clientIds[0]}&clientIds[1]={clientIds[1]}

Retrieves all agreements for the specified client that have no related clientplan. Also retrieves all agreements for the selected client that occur in clientplans with the status 'in progress'.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientIds

The clients for whom to fetch the agreements.

Collection of integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of agreements for the specified client.

Collection of ClientAgreement
NameDescriptionTypeAdditional information
Id

The internal id of the client agreement

integer

None

Name

The name of the client agreement

string

None

Description

The description of the client agreement

string

None

ClientPlanName

The name of the related clientplan, empty when no clientplan related

string

None

ClientplanAgreementId

The internal id of the clientplan agreement

integer

None

ClientId

The internal id of the client the agreement is for

integer

None

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Id": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "ClientPlanName": "sample string 4",
    "ClientplanAgreementId": 1,
    "ClientId": 5
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfClientAgreement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
  <ClientAgreement>
    <ClientId>5</ClientId>
    <ClientPlanName>sample string 4</ClientPlanName>
    <ClientplanAgreementId>1</ClientplanAgreementId>
    <Description>sample string 3</Description>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </ClientAgreement>
  <ClientAgreement>
    <ClientId>5</ClientId>
    <ClientPlanName>sample string 4</ClientPlanName>
    <ClientplanAgreementId>1</ClientplanAgreementId>
    <Description>sample string 3</Description>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </ClientAgreement>
</ArrayOfClientAgreement>